package com.jyxd.web.controller.basic;

import com.jyxd.web.data.basic.MedOrderHandlerRecord;
import com.jyxd.web.data.common.Result;
import com.jyxd.web.service.assessment.basic.MedOrderHandlerService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/his/med_order_handler")
public class MedOrderHandlerApi {
    @Resource
    private MedOrderHandlerService medOrderHandlerService;
    @PostMapping("/save")
    public Result<?> save(@RequestBody MedOrderHandlerRecord record){
        medOrderHandlerService.save(record);
        return Result.succeed(record);
    }
}
